package cn.com.geoway.booksystem.service;

import cn.com.geoway.booksystem.entity.Borrow;
import net.sf.json.JSONObject;

import java.util.List;
import java.util.Map;

public interface BorrowService {


    public JSONObject update(Integer borrowId, Integer record);
    public List<Borrow> list(Map<String,Object>map,Integer page,Integer pageSize);
    public List<Borrow> list1(Map<String,Object>map,Integer page,Integer pageSize);
    public Long getTotal(Map<String,Object> map);
    public Long getTotal1(Map<String,Object> map);
    public JSONObject returnbook(Integer borrowId);
    public Map<String, Object> borrow( String bookId,String username);

}
